how to fix internal exception java.lang.illegalstateexception invalid characters in username